home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / loge_006.arc / LOGENTRY.DOC < prev    next >
Text File  |  1990-12-19  |  2KB  |  43 lines

  1. 12-17-90
  2.  
  3.   LogEntry is a simple little program to write entries to a log file in the
  4. BinkleyTerm log file format.  It was written to allow log entries to be made
  5. from batch files.
  6.  
  7.   All parameters and the info to be written to the log are passed to LogEntry
  8. on the command line.  The first parameter is the name of the file that you 
  9. want the log entry to be written to.  The second parameter is the character
  10. that will appear in the first byte of the actual log entry.  The third
  11. parameter will appear after the date and time in the log entry.  I use caps
  12. in BinkleyTerm style and usually list the name of the batch file generating
  13. the message.  The rest of the parameters are put in the log file as they
  14. appear.  Whatever is written to the log file is also echoed to the screen so
  15. you don't need to duplicate entries.
  16.  
  17. Example of use of LogEntry in Sample.Bat:
  18.  
  19.     @echo off
  20.     LOGENTRY %syslog% - SAMPLE.BAT Sample batch file Started
  21.         .
  22.         .
  23.         .
  24.         .
  25.     LOGENTRY %syslog% # SAMPLE.BAT Sample batch file Ended
  26.  
  27. The entries in the file named in %syslog% would be:
  28.  
  29.     - 17 Dec 09:45:37 SAMPLE.BAT Sample batch file Started
  30.     # 17 Dec 09:47:18 SAMPLE.BAT Sample batch file Ended
  31.  
  32.  
  33.   I use an environment variable to specify the log file name to make it easier
  34. to change.  You can hard-code it if you want.  An example of setting %syslog%
  35. is "SET syslog=d:\binkley\binkley.log".  You have to tell LogEntry where the
  36. file to be written to or it will just write to the current directory.
  37.  
  38.   Your on your own from here... If you have any comments or suggestions, drop
  39. me a note.  Maybe we can do something with them...
  40.  
  41.         Mike Brandt            FidoNet 1:269/201
  42.         RD#6 Box 779            BBS: 1-201-948-3428
  43.         Branchville, NJ 07826